package com.smart.community.region.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 单元查询条件DTO
 * 
 * @author Wu.Liang
 * @since 2024-12-21
 */
@Data
@Schema(description = "单元查询条件DTO")
public class UnitQueryDTO {

    @Schema(description = "单元编码（精确查询）")
    private String unitCode;

    @Schema(description = "单元名称（模糊查询）")
    private String unitName;

    @Schema(description = "所属楼栋ID")
    private Long buildingId;

    @Schema(description = "所属社区ID")
    private Long communityId;

    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;

    @Schema(description = "排序字段", example = "create_time")
    private String orderBy;

    @Schema(description = "排序方向：asc-升序，desc-降序", example = "desc")
    private String orderDirection;

    @Schema(description = "当前页码", example = "1")
    private Integer current = 1;

    @Schema(description = "每页大小", example = "10")
    private Integer size = 10;
} 